package com.sunmi.usercenter;

import com.sunmi.usercenter.bean.InputToCode;

/**
 * 存放一些全局的常量
 * @author longtao.li
 *
 */
public class Constant {
	
	
	public static final String ACCOUNT_TYPE = "com.sunmi.usercenter.type";
	
	public static String CLASS_FRAGMENT = "";
	public static boolean ME_IS_LAUNCHER;
	
	public static InputToCode mInputToCode = new InputToCode();
	
	public static final String InputCodeFragment = "InputCodeFragment";
	public static final String LoginFragment = "LoginFragment";
	public static final String RegisterFragment = "RegisterFragment";
	public static final String RetrievePsdFragment = "RetrievePsdFragment";
	public static final String SettingPsdFragment = "SettingPsdFragment";
	public static final String StartRegisterFragment = "StartRegisterFragment";
	public static final String UserAcountFragment = "UserAcountFragment";
	public static final String UserUpdatePasswordFragment = "UserUpdatePasswordFragment";
	public static final String UserAllInfoFragment = "UserAllInfoFragment";
	public static final String DoubleClickExit = "DoubleClickExit";

	public static String IDELIVER_KEY; 	// MD5密钥
	public static String DES_KEY;		// des加密的key
	public static String DES_VI; 		// des的vi
	public static String isEncrypted;  //是否加密 
	public static final int RELEASE = 4; 	// 是否属于发布版本
	public static String SERVER_ADDRESS;  //服务器地址
	public static String MD5_PASSWORD_KEY = "Woyouwaimai76";
	
	static{
		switch (RELEASE) {
		case 1://运营
			SERVER_ADDRESS = "http://api.sunmi.com/api/sunmi/app/accounts/1.0/?service=/";
			isEncrypted = "1";
			IDELIVER_KEY = "Jihewobox15";
			DES_VI = "98765432";
			DES_KEY = "jihexxkj";
			break;
		case 2://UAT
			SERVER_ADDRESS = "http://uat.api.sunmi.com/api/sunmi/app/accounts/1.0/?service=/";
			isEncrypted = "1";
			IDELIVER_KEY = "Jihewobox15";
			DES_VI = "98765432";
			DES_KEY = "jihexxkj";
			break;
		case 3://测试
			SERVER_ADDRESS = "http://test.api.sunmi.com/api/sunmi/app/accounts/1.0/?service=/";
			isEncrypted = "0";
			IDELIVER_KEY = "Woyouxinxi666"; 
			DES_KEY = "wywmxxkj";
			DES_VI = "12345678";
			break;
		case 4://开发
			SERVER_ADDRESS = "http://121.42.58.44/api/sunmi/app/accounts/1.0/?service=/";
			isEncrypted = "0";
			IDELIVER_KEY = "Woyouxinxi666"; 
			DES_KEY = "wywmxxkj";
			DES_VI = "12345678";
			break;
		default:
			break;
		}
	}
}
